Condenser framework

ABSTRACT

In entity transition from legacy systems to a big data distributed data platform, numerous system-based architectural gaps have surfaced. There exists a need for a bridge component for each of the architectural gaps in order to support the entity transition to the big data distributed data platform. These bridge components include a variety of frameworks that are configured to automate certain processes that are needed for the transition. These processes have only become necessary as a result of the Hadoop platform. The automated processes include a snapshot load platform. The snapshot load platform enables the addition of a new view to the historical tables. The platform includes replacing the entire table in a truncated scenario. The platform includes replacing cases in a refresh or update scenario.

CROSS-REFERENCE TO RELATED APPLICATIONS

U.S. patent application Ser. No. 16/773,034, entitled “VIEW TABLES FRAMEWORK,” filed on a date even herewith is hereby incorporated by reference herein in its entirety. U.S. patent application Ser. No. 16/773,165, entitled “SNAPSHOT LOAD FRAMEWORK,” filed on a date even herewith is hereby incorporated by reference herein in its entirety.

FIELD OF TECHNOLOGY

This application describes apparatus and methods for big data processing in a data lake storing information in native format.

BACKGROUND

In the digital world, organizations utilize data to perform fundamental daily functions. Examples of organizations include grocery stores, universities and financial institutions. Each organization may utilize and store different categories of data. For example, grocery stores may utilize and store point-of-sale (“POS”) data, customer data, available food stock data and employee data. Universities may utilize and store student data, book data, class schedule data and employee schedule data. Financial Institutions may utilize and store customer data, bank account data, credit bureau data, card data, mortgage data, vehicle loan data and employee data.

Many times, because there may be different types of data stored within one organization, an organization's data may be stored in multiple source systems, also known as systems of record. Each source system may operate as a mini entity. Each source system may include its own dedicated database and computing system. In an example, an organization may include multiple departments; each department within the multi-department organization may maintain its own database.

However, there may be disadvantages associated with hosting multiple mini entities within an organization. One disadvantage may be data duplicity. Because each mini entity includes its own database and computing system, there may be many records, such as customer records, that are included in more than one mini entity. There may be numerous problems associated with duplicate records. Firstly, duplicate records may waste resources. Secondly, duplicate records may increase the risk of data discrepancies. An example of a data discrepancy may be that a first department may include a middle initial of a person's name and a second department may not include the middle initial of the person's name.

Therefore, it may be desirable to combine the data from all of the source systems to an amalgamated data lake. An amalgamated data lake may be a system or repository of data. The data stored in a data lake may be stored in a natural or raw format, such as blobs or files.

A data lake may be a single storage location for all enterprise data. The enterprise data may include raw copies of source system data. The enterprise data may also include transformed data used for reporting, visualization, advanced analytics and machine learning.

A data lake may also store structured data, semi-structured data and binary data. Structured data may include row and column data retrieved from relational databases. Semi-structured data may include comma separated value (“CSV”) files, log files, extensible markup language (“XML”) files and java script object notation (“JSON”) files. Binary data may include image files, audio files and audio-visual files.

However, there may be limited functionality within the data lake when compared to the capabilities of the source systems. Therefore, it may be further desirable to create frameworks that offer certain data manipulation capabilities that have been previously unavailable within the data lake.

A framework may be a platform for developing, hosting and executing software applications. A framework may include predefined classes and functions that can be used to process input, manage hardware devices and interface with system software. A framework may include one or more application programming interfaces (“APIs”). A framework may be used to execute a specific set of functions.

It may be yet further desirable to enable each department to access their data within the data lake.

It may be still further desirable to provide a system to migrate the data from the source systems to the data lake.

BRIEF DESCRIPTION OF THE DRAWINGS

The objects and advantages of the disclosure will be apparent upon consideration of the following detailed description, taken in conjunction with the accompanying drawings, in which like reference characters refer to like parts throughout, and in which:

FIG. 1 shows an illustrative system in accordance with principles of the disclosure;

FIG. 2 shows an illustrative system in accordance with principles of the disclosure;

FIG. 3A shows an illustrative system in accordance with principles of the disclosure;

FIG. 3B shows an illustrative system in accordance with principles of the disclosure;

FIG. 4 shows an illustrative system in accordance with principles of the disclosure;

FIG. 5 shows an illustrative system in accordance with principles of the disclosure;

FIG. 6 shows illustrative output of an illustrative system in accordance with principles of the disclosure;

FIG. 7 shows illustrative output of an illustrative system in accordance with principles of the disclosure;

FIG. 8 shows illustrative output of an illustrative system in accordance with principles of the disclosure; and

FIG. 9 shows illustrative output of an illustrative system in accordance with principles of the disclosure.

DETAILED DISCLOSURE

A system for migrating data from disparate source systems to an amalgamated data lake is provided. Such a system may provide, within the data lake, a 360-degree view of the data that had previously been housed in the disparate source systems. The 360-degree view may be understood, for the purposes of this application, to mean a comprehensive, single-location, homogeneous view of data from multiple source systems.

Examples of the disparate source systems may include a customer credit bureau refresh system, a consumer vehicle lending system, a card information system, a consumer loans risk operation system, a global wealth and investment management data provisioning point system and a mortgage data exchange operational data store.

A customer credit bureau refresh system may be a system that includes data relating to refresh information for a customer's credit. The refresh system may include data to be transmitted to credit bureaus. The refresh system may also include data received from credit bureaus.

The refresh system may also query credit bureaus for soft credit inquiries. Soft credit inquiries may identify recently incurred or undisclosed responsibilities. Soft credit inquiries may preferably not affect a customer or inquirer's credit score.

A consumer vehicle lending system may be a system that includes data relating to vehicle financing. The lending system may include data relating to lease buyouts, new car financing, used car financing and any other suitable vehicle financing data.

A card information system may be a system that includes data relating to card information. The card information system may include data relating to debit cards, credit cards, automated teller machine (“ATM”) cards, cash cards, gift cards or any other suitable cards. The card information system may include data relating to card owners, card users, card transaction history or any other suitable card data.

A consumer loans risk operations system may be a system that includes data relating to consumer loans. The system may also calculate and store risk metrics relating to consumer loans. Such loans may include short term loans, long term loans, home improvement loans or any other suitable consumer loans. The risk operations system may include algorithms for determining risk at loan closings. The risk operations system may also include algorithms for determining risk periodically throughout the life of the loan.

A global wealth and investment management data provisioning point system may be a system that includes data relating to capital management. Such a system may include investment data, stock data and any other suitable data.

A mortgage data exchange operational data store may be a system that includes data relating to mortgages. Such a system may include mortgage data, property data, property tax data, escrow data and any other suitable data.

The migration and deployment system may provide a system to migrate the data from the source systems, such as those discussed above, to an amalgamated data lake. Such a migration may include transferring data between each source system and the data lake.

There may be technical problems with the standard data lake functionalities. Specifically, a data lake may be optimized for storing data, not displaying data. This may be because a data lake is a single location for huge amounts of diverse data. The data lake may be lacking the capabilities, or be optimized to, present data in easily consumable views that enable a user to appropriately identify, select and manipulate the data.

As such, there may be certain functionalities that are available in each of the above-mentioned source systems but are not available within the amalgamated data lake. Therefore, various add-on functionalities may be made available within the system. These add-ons may be implemented within the data lake to perform the functionalities that have previously not been available. These functionalities may include generating views for viewing the data included in the data lake, generating views for viewing historical snapshots of the data included in the data lake and generating condensed views of the data included in the data lake.

Each of these functionalities may be embodied in a framework. The frameworks may include a view creation framework, a snapshot load framework and a condenser framework.

A view creation framework may be used by the end user to view and query the data included in the data lake. The view creation framework may produce different views of the data included in the data lake's data tables. The different views may enable entity users to view and manipulate the data.

The view creation framework may perform numerous executables. The view creation framework may automate the logic needed to generate the views in order to be compatible with an environment that is special for storing data and running applications on clusters of commodity hardware. Such an environment may provide large amounts of storage for any data type. Such an environment may also provide enormous processing power and the ability to handle virtually limitless concurrent tasks or jobs. Such an environment may be a Hadoop™ environment, which may also be referred to herein as the Hadoop™ framework. The Hadoop™ environment may be an open-source software framework for storing data and running applications on clusters of commodity hardware. The Hadoop™ environment provides massive storage for any data type, as well as enormous processing power. Hadoop™ also provides the ability to handle virtually limitless concurrent tasks or jobs.

Previously, in order to generate multiple views, multiple developers were used. Multiple developers were previously used because a separate view application was generated for each source system. Therefore, each time a view application was created, a developer was used to create the custom application from the initial stages. It should be appreciated that more than one developer working on the same project may produce a greater risk of errors. Therefore, automating the logic and the views within the data lake may reduce the risk of errors. Additionally, once a view is generated, it can be used for multiple data groups within the data lake.

In addition, the automated logic and views may be replicated and reusable. The replicated and/or reusable automated logic and views may be utilized for various different types of data received from various source systems.

The view creation framework may include creating current and monthly views. Current views may be views of the data included in the data lake. Current views may point to current data, so the current view may display all of the current month's records. Monthly views may point to a specific point in time. Monthly views display all of the records for the requested month.

The view creation framework may also create views on tables that have been replaced with new data. The view creation framework may also create standard views on upsert permanent tables using a configuration file. Upsert tables may be tables that are condensed so that only the latest record in the table is visible.

The view creation framework may also create views on secured and non-secured schemas. The schemas may be based on metadata.

The view creation framework may also automate standard view creation with ranking and joins for upsert tables. The view creation framework may also add a to date function for source date columns. The to date function may mimic a to date function included in the one of the source systems. The view creation framework may format the data as per end user needs.

The view creation framework may also provide a bridge between the disparate source systems and the amalgamated data lake. The view creation framework enables users to view data from previously disparate systems in one location or view. Additionally, the view that point to the data lake may replicate views that pointed to each source system. As such, a user may be familiar with the views and re-training of users may be unnecessary.

Upon successful generation of the scheduled tables, the view creation framework may transmit an email alert. The email alert may include the list of tables that have been generated and are available for viewing. The generated tables may be made available for viewing through multiple user interfaces. The user interfaces may include general user interfaces, group entity user interfaces, entity specific user interfaces or department specific user interfaces. The user interfaces may be customizable to enable a user to customize the user interface. The generated tables may be queried by a query tool. Such a query tool may include Hue™. Hue™ may be a user interface, or SQL assistant, for analyzing and querying data within a Hadoop™ data lake. Hue™ may make self-service data querying more easily accessible to organizations.

The snapshot load framework may provide the ability to users to view historic tables. The data may be archived to history tables at the end of every month. Users can access these records in order to analyze old records or transactions. The snapshot load framework may automate the process of loading data, such as daily transactions, into a history table from the main table every month.

Upon successful generation of the scheduled history tables, the snapshot load framework may transmit an email alert. The email alert may include the list of tables that have been generated and are available for viewing. The generated tables may be made available for viewing through multiple user interfaces. The user interfaces may include general user interfaces, group entity user interfaces, entity specific user interfaces or department specific user interfaces. The user interfaces may be customizable to enable a user to customize the user interface.

The condenser framework may include a process for condensing tables. Tables within the data lake may include numerous transactions.

New transactions may be appended to the tables daily. However, many times an end user desires to view only the latest record in a table. Therefore, the condenser framework performs an upsert process. The upsert process may truncate the old records and maintain only the latest record in a table.

Upon successful completion of the condenser process, the condenser framework may transmit an email alert. The email alert may include the condensed tables that have been generated and are available for viewing. The condensed tables may be made available for viewing through multiple user interfaces. The user interfaces may include general user interfaces, group entity user interfaces, entity specific user interfaces or department specific user interfaces. The user interfaces may be customizable to enable a user to customize the user interface. The generated tables may be queried by a query tool. Such a query tool may include Hue™. Hue™ may be a user interface for analyzing and querying data within a Hadoop™ data lake.

It should be appreciated that the condenser process also improves performance and storage space of the condensed table.

It should also be appreciated that the user experience when accessing the data lake may be similar to the user experience when accessing the source systems. This may enable a seamless migration from the source systems to the data lake.

The following is a list of advantages associated with a data lake and the above-described frameworks.

The advantages may include reducing the manual effort. Manually producing the views may be time-intensive. This system automates that process and reduces bandwidth. Specifically, because Hadoop™ is a low-level framework and focuses on storing data, there may be limited resources made available for producing user-friendly views. Therefore, the above-described frameworks in addition to Hadoop may provide a user with the Hadoop advantages as well as automated user-friendly views.

The advantages may also include simplifying the user interface and process.

The advantages may also include the reusability of each process that is generated within the data lake. Therefore, once a first source system is migrated to the data lake, the process may be replicated in multiple source systems.

The advantages may also include a reduction in the amount of data. Therefore, the system may save resources, such as memory and processing power.

The advantages may also include improving performance of jobs and end user queries.

The advantages may also include data simplification. Data simplification may be specifically useful for audit and built-in enforcement of standards and policies.

The advantages may also include customizing the data output for end user needs.

Methods for generating structured views of raw data stored in a data lake are provided. Methods may include receiving relationally tabulated data at an edge-node. The tabulated data may be received from one or more sources. The sources may include relational databases positioned outside the data lake. The tabulated records may include duplicates. The edge-node may be positioned within the data lake. Methods may include identifying and eliminating duplicates.

Methods may include deconstructing the tabulated data into a main flat table. Deconstructing the tabulated table into a flat table may increase a size of the tabulated data. Deconstructing the tabulated table may include “flattening” the tabulated data. Flattening the tabulated data may include storing it in a single table, such as the main flat table. The main flat table may include all the information in the tabulated table, with little or no enforcement of structure. The absence of rigid structure may be referred to as denormalized schema.

An illustrative main flat table may be at least 2 petabytes in size. The main flat table may be larger in size than a corresponding relational database table storing the information included in the main flat table.

Flattening the tabulated data may result in a main flat table that requires more storage space than the tabulated data. The main flat table may require more storage space because it includes a row for each permutation of data referenced in the tabulated data.

The main flat table may be stored in the data lake in native format. A data lake may store information in an unstructured fashion (e.g., using denormalized schema). The data lake may store information in its generated form, without further processing or analysis. The data lake may receive and retain information from multiple sources in varying formats. Schemas, or structure, may only to be applied to information stored in the data lake when the information is ready to be consumed by an end user. The information is ready to be consumed by an end user when the end user requests the information.

Because data lakes do not include rigid structure therefore they may be more flexible. For example, changes to hardware or software operating in the data lake may be easier to implement compared to more rigid structures, such data warehouses or relational database management systems. Data lakes are more flexible and can be configured and reconfigured as needed for a specific project.

However, due to the unstructured nature of the information stored within a data lake, it may be technologically difficult for an end user to locate and organize desired data. Because the data lake stores information in its native form, the information in the data lake may include a variety of different and possibly incompatible formats. It may also be technologically difficult to format the desired information for presentation to an end user. Apparatus and method disclosed herein provide solutions to these technological challenges associated with data lakes.

Methods may include restructuring the main flat table. Restructuring the main flat table may include accessing information stored in the data lake. Restructuring the main flat table may include creating a first standard view table. The first standard view table may present information stored in the data lake in an organized and structured format. The first standard view table may include only unique records. The first standard view table may only include unique records added to the main flat table within a predetermined time window. An illustrative predetermined time period may be a month, week, day or any other suitable time period.

Methods may include condensing the main flat table. The edge-node may receive tabulated data every day. For example, the tabulated data may include records of daily transactions generated by customers of a financial institution.

An end user of the main flat table may include an employee of the financial institution. The employee may wish to view or conduct an analysis of transactions generated by the customers of the financial institution. The employee may only require viewing or analysis of records recently added to the main flat table. A record may be “recent” when it has been added to the main flat table within the predetermined time period.

In some embodiments, methods may include providing end users with a view of the recent records by generating a view of the main flat table that truncates older records and keeps only the recent records. In some embodiments, methods may include providing the end users with a view of recent records by generating a new flat table by truncating older records included in the main flat table and keeping only recent records. In some embodiments, methods may include providing the end users with a view of the recent records by truncating the main flat table itself to remove older records and keeping only recent records.

Over time, the main flat table may grow in size. Over time, additional information may be added to the data lake and appended to the main flat table. To speed up processing of end user requests for analysis and display of information in the data lake, the main flat table may be reduced, or condensed, in size.

A process for condensing the main flat table is provided. A condensing process may include truncating the main flat table and generating an updated main flat table. Truncating and generating an updated main flat table may be referred to herein as an upsert process. A condenser framework may automate the upsert process and condense the main flat table.

Methods may include executing one or more frameworks within the data lake. A framework may be a software application. For example, the condenser framework may be written in UNIX and/or python programming languages. Software applications may be operational with distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. Such distributed processing may include distributed storage and processing of “big data.” Big data may include information stored in a data lake.

Software applications disclosed herein, such as the condenser framework, may perform distributed storage and processing of information stored in the data lake using programming models that apply parallel, distributed algorithm across a cluster of connected computer systems. Such a programming model may utilize a map reduce programming model and associated libraries.

A map reduce program model and associated libraries may execute various tasks in parallel, manage communications and data transfers between system components, and implement redundancy and fault tolerance at the software application level. A map reduce program model may divide a computing task into small jobs and assign each small job to a different computer. The map reduce program model may collect the results of each small job from each computer and form a result dataset based on the results of each small computing job.

An illustrative software application that utilizes a map reduce model and associated libraries includes Apache Hadoop™ provided by the Apache Software Foundation of Wakefield, Mass.

The condenser framework may operate within the data lake. The condenser framework may run in accordance with a system defined schedule. The condenser framework may be run on an ad hoc basis. For example, the condenser framework may be executed in response to an end user request for analysis or viewing of records included in the main flat table.

Condensing the main flat table may provide technological advantages. For example, condensing the main flat table may improve performance of generating views of the main flat table. Analysis, queries or other operations on the main flat table may be performed faster after the condenser framework has been applied to the main flat table. Condensing the main flat table may reduce space required in the data lake to store the main flat table. Condensing the main flat table may improve performance and storage space by reducing a size of records included in the main flat table.

Methods may include obtaining a record count of records in the first standard view table. The first standard view may include only unique records presented for display to the end user. Methods may include creating a temporary table.

The temporary table may be created based on the number of unique records included in the first standard view table.

Methods may include inserting a set of overwrite records into the temporary table. Methods may include overwriting the main flat table with the temporary table. The overwriting may truncate any records included in the temporary table and not included in the main flat table. After the overwriting, the main flat table may include fewer records than prior to the overwriting.

Methods may include restructuring the main flat table stored in the data lake and creating a second standard view table. The second standard view table may be created after the condensing process has been applied to the main flat table. The second standard view table may include unique records added to the main flat table within a second predetermined time window. The second standard view table may consist of only unique records added to the main flat table after expiration of the first predetermined time window and within the second predetermined time window. The second standard view may provide an end user a visual display of unique records added to the data lake within a predetermined time interval.

Methods may include using a viewing tool running in the data lake, generating tabulated views of the first standard view table during the first time window. Methods may include using the viewing tool, generating tabulated views of the second standard view table during the second time window.

Methods may include, after inserting the set of overwrite records into the temporary table, obtaining a unique record count of records in the temporary table. In some embodiments, the temporary table may be populated with pointers for locating records stored in the data lake. In some embodiments, the temporary table may be populated with records extracted from the data lake.

Methods may include comparing the unique record count of records in the temporary table to the unique record count of records referenced in the first standard view table. Methods may include aborting any changes to the main flat table when the unique record count of the temporary table is not equal to the unique record count of the first standard view table.

When the unique record count of the temporary table is not equal to the unique record count of the first standard view table, an error may have occurred during creation of the temporary table. The methods may include suspending changes to (e.g., overwriting) the main flat table until a temporary table is created that includes the same number of unique records as the first standard view table.

Methods may include, after overwriting the main flat table, comparing the unique record count of the (now overwritten) main flat table to the unique record count of the first standard view table. This comparison may check may confirm that the main flat table has been successfully overwritten with the expected number of records. Methods may include recreating the temporary table when the unique record count of the main flat table is not equal to the unique record count of the first standard view table.

Before the overwriting, the temporary table may include fewer records than the main flat table. The overwriting may truncate the main flat table. The overwriting may truncate at least one record at least one record in the main flat table.

After the overwriting, the temporary table may include the same amount of records as the first standard view table. Methods may include confirming, after the overwriting, that the number of unique records included the main flat table is equal to the number of records in the first standard view table. The standard view table may only include unique records. Methods may include, after the overwriting, confirming that each record included in the first standard view table is included in the main flat table.

The overwrite records added to the temporary flat file may correspond to records extracted from the main flat table based on metadata included in the first standard view table. The metadata may identify specific records. The metadata may identify unique records. Metadata may include a time/date stamp. Metadata may include a unique key assigned to a record.

Creation of the temporary table may be controlled by a configuration file. The configuration file may automate the steps for creating the temporary table, obtaining the overwrite records and overwriting the main flat table. Overwriting the main flat table with the temporary table may include changing a memory address (e.g., a pointer) that directs the configuration file, or other frameworks operating in the data lake, to the temporary table instead of the main flat table.

The configuration file may perform one or more error checks to ensure that the temporary table includes the same number of records as the first standard view table. The configuration file may perform one or more error checks to ensure that after the overwriting, the main flat table includes the same number of records as the first standard view table.

The configuration file may be called by a user. For example, an end user may call the configuration file to condense the main flat table before running a query or other analysis. The configuration file may be called by a system. For example, a system may be configured to call the configuration file and condense the main flat table at predetermined intervals. An illustrative interval may be an hour, day, week, month or year.

After overwriting the main flat table, methods may include creating a second standard view table. The second standard view table may include unique records added to the main flat table within a second predetermined time window. The second time window may begin after expiration of the first time window. The second time window may begin after the overwriting of the main flat table. The second time window may include the same time interval as the first time window. The second time window may be longer or shorter than the first time window.

The second standard view table may include unique records added to the main flat table. The second standard view table may include unique records added to the main flat table within the second predetermined time window. Methods may include generating the second standard view table after confirming that the main flat table and the first standard view table include the identical number of records. The second standard view table may include a different number of unique records than the first standard view.

A system of frameworks operating in a data lake is provided. The system may generate structured views of unstructured data stored within the data lake. The system may include an edge-node. The edge-node may be positioned within the data lake. The edge-node may be configured to receive tabulated data from computer systems outside the data lake.

The system may include a main flat table. The main flat table may be stored in the data lake in native format. The main flat table may include duplicates because data in the flat table may originate from a relational database. The relational database may store data in a structured format across multiple tables. Each table in the relational database may be linked by a key or other unique identifier.

When the data received by the edge-node from the relational databases is flattened, the flattened table may include additional rows to accommodate for every permutation of the data stored in the relational database. Although such row are not identical (because they each include a different permutation of data), to an end user viewing the flattened table, the repetition of data in multiple rows of the flattened table may appear erroneous or duplicative.

The system may include a view framework. The view framework may be a software application. The view framework may be configured to eliminate duplicate records included in the tabulated data received by the edge-node from systems outside the data lake. The view framework may store unique records included in the tabulated data in a main flat table within the data lake. The view framework may generate a standard view table based on records included in the main flat table.

The view framework may be configured to generate a standard view table based on the flat table stored in the data lake. The view framework may be configured to restructure the main flat table and eliminating the repetition of data in multiple rows. The standard view table generated by the view framework may present a display of records that, to an end user, does not include records that may appear to be unnecessarily repeated.

The system may include a condenser framework. The condenser framework may be a software application. The condenser framework may be configured to truncate the main flat table. Truncating the main flat table may improve performance of the view framework when generating views of records included in the main flat table.

The system may include a viewing module. The viewing module may be configured to generate views of records referenced in the standard view table. The viewing module may generate the views by using metadata included in the standard view table. The viewing module may locate records included in the main flat table and stored within the data lake.

The system may generate structured views of data stored within the data lake. A structured view may include unique records, as would have been retrieved from a relational database.

The viewing module may be configured to generate multiple views of records included in the standard view table. The viewing module may be configured to load data and metadata associated with each record included in the standard view table by locating and extracting the data/metadata from the main flat table.

The condenser framework may be configured to truncate the main flat table. The condenser framework may be configured to condense the main flat table such that the main flat table only includes records within a predetermined time window. For example, the condenser framework may truncate the main flat table such that only records created within the past month are included in the main flat table.

The condenser framework may be further configured to truncate the main flat table by generating a temporary table. The temporary table may include fewer records than the main flat table. The temporary table may be used to overwrite the main flat table and thereby truncate the main flat table.

The condenser framework may be further configured to generate the temporary table based on records included in the standard view table. The condenser framework may be configured to compare a number of records included in the temporary table to a number of records included in the standard view table. The condenser framework may abort a process of overwriting the main flat table when the number of records included in the temporary table is not equal to the number of records included in the standard view table.

A difference in the number of records may indicate that an error has occurred when generating the temporary table. When the number of unique records included in the main flat table is not equal to the number of unique records in the first standard view table, the condenser framework may generate a new temporary table using the first standard view table.

In some embodiments, the condenser framework may populate the temporary table with records extracted from the standard view table. In some embodiments, the condenser framework may populate the temporary table with records extracted from the data lake based on unique identifiers included in the standard view table.

The standard view table may be a first standard view table. The condenser framework may be configured to compare a number of unique records included in the main flat table to a number of records in the first standard view table. The condenser framework may be configured to compare a number of unique records included in the main flat table to a number of records in a flattened version of the first standard view table.

When the number of unique records included in the main flat table is equal to the number of unique records in the first standard view table, the view framework may generate a second standard view table. The view framework may generate the second standard view table after a second time window passes. The second time window may allow a threshold number of new records to be appended to the main flat table.

The standard view table may be a first standard view table. The condenser framework may determine that the main flat table has exceeded a threshold amount of storage space within the data lake. The condenser framework may truncate the main flat table based on a metadata stored in a second standard view table. After truncating the main flat table based on the second standard view table, the main flat table may occupy less than the threshold amount of storage space within the data lake.

A system of frameworks operating in a data lake for generating structured views of information stored in native format within the data lake is provided. The system may include a view framework. The view framework may be configured to generate a standard view table. The view framework may generate the standard view table by restructuring a main flat table stored in the data lake. The view framework may generate the standard view table by extracting metadata from a main flat table stored in the data lake.

The system may include a condenser framework. The condenser framework may be configured to truncate the main flat table. The system may include a viewing module. The viewing module may be configured to generate a display based on the standard view table. The viewing module may be configured to generate a display based on metadata included in the standard view table. The viewing module may be configured to generate a display in response to an end user query for information included in the standard view table.

Over the course of a time window, records may be added to the main flat table. An illustrative time window may be an hour, day, month, year or any suitable duration of time. The condenser framework may be configured to truncate records that have been included in the view table for more than 30 days. The age of a record may be determined based on a time/date stamp associated with the record. The condenser framework may be configured to truncate records that are included in a main flat table and not included in a standard view table.

The condenser framework may utilize object-oriented programming to locate target records stored in the data lake for less than 30 days. The condenser framework may utilize object-oriented programming to load target records into a temporary table. The condenser framework may be configured to use classes and properties to express queries for locating the target records in the data lake. The condenser framework may load the target records into a temporary table. The condenser framework may use the temporary table to overwrite the main flat table.

The condenser framework may be configured to overwrite the main flat table with the target records included in the temporary table. The condenser framework may be configured to overwrite confirm that the standard view table and the temporary table reference an identical number of records before overwriting the main flat table. Overwriting the main flat table with the target records may truncate records included in the main flat table that are older than 30 days. Apparatus and methods in accordance with this disclosure will now be described in connection with the figures, which form a part hereof. The figures show illustrative features of apparatus and method steps in accordance with the principles of this disclosure. It is to be understood that other embodiments may be utilized, and that structural, functional and procedural modifications may be made without departing from the scope and spirit of the present disclosure.

The steps of methods may be performed in an order other than the order shown and/or described herein. Method embodiments may omit steps shown and/or described in connection with illustrative methods. Method embodiments may include steps that are neither shown nor described in connection with illustrative methods. Illustrative method steps may be combined. For example, an illustrative method may include steps shown in connection with any other illustrative method.

Apparatus may omit features shown and/or described in connection with illustrative apparatus. Apparatus embodiments may include features that are neither shown nor described in connection with illustrative apparatus. Features of illustrative apparatus may be combined. For example, an illustrative apparatus embodiment may include features shown or described in connection with another illustrative apparatus/method embodiment.

FIG. 1 shows an illustrative diagram. The illustrative diagram shows a high-level design flow of a replace command.

Data from source system 102 may be transferred to data lake 104. Data lake 104 may be a Hadoop™ data lake. A Hadoop™ data lake may utilize specialized software to generate massive amounts of computing power from multiple average capability computers. The specialized software may distribute computing tasks across multiple nodes. The nodes may be linked. The nodes may include average computing capabilities.

This method of distributed processing may be efficient. One reason this method may be efficient may be because in the event of a failure on a node, the data lake may remain operational.

Source system 102 may be a card information system. Data files 108 may be transferred from source system 102 to edge node 110. Edge node 110 may be within data lake 104. It should be appreciated that, in some embodiments, edge node 110 may receive all of the files from source system 102.

The data transfer between source system 102 and data lake 104 may be a network data mover (“NDM”) data transfer. NDM may be a software product for transferring files between mainframe computers and midrange computers.

Edge node 110 may transfer files to stage table 112, within data lake 104. The transfer between edge node 110 and stage table 112 may be described as file to H. Framework. File to H. Framework may be understood to mean processing a file within the data lake in order to store the file within the data lake. An H. Framework may be a Hadoop™ framework, a data lake or other suitable framework. Stage table 112 may be the first location at which unstructured and/or unorganized data received from predetermined relational database management system is structured is structured into tables. The predetermined relational database management system may be configured to run on multiple virtual storage locations. The predetermined relational database management system may be DB2™. DB2™ may include structured and/or unstructured data files.

In some embodiments, the files transmitted to stage table 112 may be metadata files. The metadata files may include data about the data files received from source system 102. An example of metadata included in the metadata files may include file name, file size, file origin or any other suitable metadata. In certain embodiments, the transmitted data may include data included in data files. Such data may be a portion, or the entirety of the data included in the data files.

Stage table 112 may receive metadata and/or data from edge node 110 included in the data lake. Stage table 112 may be the first step in which data from data files are structured within a table. Stage table 112 may truncate and/or load the metadata for every run. Upon solidifications of the data within stage table 112, the stage table may generate a permanent load insert statement. The permanent load insert statement may combine multiple solidified data elements that have been received at stage table 112. The permanent load insert statement may be one or more .hql files.

The permanent load insert statement may be transmitted to permanent table or main table 116. Permanent table or main table 116 may receive insert statements from the stage table. Permanent table or main table 116 may be replaced with the updates received from stage table 112. Permanent table or main table 116 may represent a permanent record of the current data included in each edge node.

The view creation framework may include a view process to enable users to view the data included in permanent table or main table 116. The views may be shown at 106. The views shown may include a standard view 114. Views 106 may point to permanent table 116. Therefore, views 106 may display the data included in permanent table 116. Standard view 114 may include a view of the data without any filters or queries.

Some views may enable filters and/or queries. The filters and/or queries may narrow the data that is viewed. Different views may give a user the ability to view different aspects of the data.

FIG. 2 shows another illustrative diagram. The illustrative diagram shows a high-level design flow. The high-level design flow includes source system, shown at 202 and amalgamated data lake, shown at 204.

Source system 202 may include data. The raw data received at source system 202 may be shown at 208 as incremental data files from DB2. Prior to utilizing the data lake, a relational database management system, shown at 210, may be used to store structured data that has been culled from data files 210. Such a relational database management system may be a Teradata™ database. Therefore, database 210, includes data that has been structured within tables. Once incremental data files from DB2 208 are structured and positioned within tables in Teradata database 210, the incremental data files from DB2 may be archived.

Upon the initiation of data lake 204, incremental data files from DB2 may be transferred directly to edge node 212. However, because Teradata 210 also includes structured tables of archived data files, the tabulated data from Teradata 210 may also be transferred to stage table 214.

In addition, during the migration process, the data files from DB2 may continue to be transferred to Teradata database 210. This may result in duplicate data within stage table 214. Stage table 214 may include data duplicate removal processes for removing the duplicate data. Additionally, data files received from DB2 may also include duplicate data. As such, this duplicate data may be easily removed once the data files are transferred into structured data files.

Edge node 212 may transfer data or metadata relating to incremental data files to stage table 214. Stage table 214 may also receive tabulated data from Teradata database 210, as described above. It should be appreciated that the data transfer between Teradata database 210 and stage table 214 may utilize a command-line interface application for transferring data between relational databases and environments, such as Hadoop™. Such an interface may be referred to as an S. Framework. Such an interface may be a Sqoop™ framework. The transfer between Teradata database 210 and stage table 214 may also load one time only at Day 0. The Day 0 load may be executed once the migration from the data repository system is archived. As such, upon the day 0 load data from the DB2 may be imported directly into edge node 212 instead of the DB2.

Stage table 214 may truncate and/or load for every run. Stage table 214 may tabulate unstructured data received from edge node 212. Stage table 214 may also remove duplicates. Duplicates may be the same data included in both tabulated data received from Teradata 210 and unstructured data received from edge node 212. Duplicates may also include multiple data records, each of which correspond to the same data record, however, include a different time stamp. As such, the data record with the most recent time stamp may be maintained, and all other data records—i.e., data records with historic time stamps—may be removed during the duplicate removal.

Stage table 214 may include the most recent data records to be appended to the permanent table. Stage table 214 may combine the structured data into a permanent load insert statement. As such, the most recent data records may be formulated into a permanent load insert statement. The permanent load insert statement may be in the formation of an .hql file. The permanent load insert statement may be inserted into permanent table (main table), shown at 218. As such, the records included in the permanent load insert statement may be appended to the main table.

Permanent table (main table) 218 may include daily partitions. The daily partition may be removed and/or deleted to rerun the same file. Permanent table 218 may receive insert statements.

Views 206 may enable a user to view the contents of the permanent table 218. Views 206 may point to permanent table 218. Views 206 may retrieve data from permanent table 218 for end user viewing. Therefore, the data included in permanent table 218 may be visible by an end user.

Views 206 may include current view 216 and monthly view 220. Current view 216 may point the current month. Because each month may be partitioned from the other months, the current view pointer may point to the current month.

Monthly view 220 may be operable to receive parameters. The parameters may be month and year parameters. The parameters may be received in a year, year, month, month (YYMM) format. Monthly view 220 may receive the month and year parameters. Monthly view 220 may access permanent table 218 to retrieve the records included in the partition of the month that corresponds to the received parameters. Monthly view 220 may display the retrieved records to the end user.

FIG. 3A and FIG. 3B show an illustrative diagram. FIG. 3A shows the flow between components. FIG. 3B includes details on some of the components included in the FIG. 3A.

As discussed above, source system 302 may transmit data to data lake 304. Unstructured data may be migrated from incremental data files from DB2, as shown at 310, to edge node 316. The data transfer between data files 310 and edge node 316 may be an NDM file transfer.

Tabulated data may also be migrated from Teradata database 312 directly to stage table 318. The data transfer between Teradata database 312 and stage table 318 may utilize the Sqoop™ framework. The data transfer between Teradata database 312 and stage table 318 may be a day zero one time load.

The unstructured data received at edge node 316 may include various categories of labeled data. One category of labeled data may include data that is in-use. Another category of labeled data may include data that was marked within source system 302 to be deleted.

The in-use data may be transferred from edge node 316 to stage table 318. The in-use data may be structured at stage table 318. After structuring, in-use data may be formed into load insert statements. The load insert statements may be .hql files. The load insert statements may be loaded into permanent table (main table) 324.

The data that was marked to be deleted may be transferred from edge node 316 to permanent table (purged/deleted records) 314. Permanent table (purged/deleted records) 314 may include all of the purged and/or deleted records.

Permanent table (history) 328 may include historical data. Each month, the standard view of the month may be processed and loaded to permanent table (history) 328. Permanent table (history) 328 may maintain a historical log of the records.

View 306 may include a plurality of views. Standard view 322 may point to permanent table (main table) 324, permanent table (purged/deleted records) 314 and permanent table (history) 312. Therefore, standard view 324 may display substantially all of the available data within data lake 304.

Standard view 320 may point to permanent table (purged/deleted records) 314. Therefore, standard view 320 may display the purged and/or deleted records.

Monthly view 326 may point to permanent table (history) 312. Therefore, monthly view 326 may display the historical records of a particular historical month. The particular historical month to be displayed may be received from a user. The month may be received from a user in the year, year, month, month (YYMM) format.

Condenser process 308 may be a process used to truncate tables in order to enable an end user to view only the latest record. Condenser process may also be known as an upsert process.

Condenser process may retrieve a record count from standard view 322, as shown at 330. Condenser process may drop and/or create a temporary table (TMP table) in stage schema using permanent table metadata, as shown at 332. Condenser process may insert overwrite standard view record set into the temporary table, as shown at 334.

Condenser process may compare the record counts between the standard view and the temporary table, as shown at 336. If the record counts between the standard view and the temporary table do not match, a failure email may be transmitted, as shown at 342.

If the record counts between the standard view and the temporary table match, the condenser process may overwrite the temporary table with data files from the permanent table, as shown at 338. Temporary data files 346 may retrieve the files for the rewrite from permanent table (main table) 324.

After the overwriting, the condenser process compares the record counts between the standard view and the permanent table, as shown at 340. If the record counts between the standard view the permanent table match, the condenser process generates a success email, as shown at 344. If the record counts between the standard view and the permanent table do not match, the condenser process generates a failure email, as shown at 342.

The record count, within the condenser process, may be checked two times to ensure the appropriate record count. It is important that the count is correct because the upsert function makes only the top record visible. Therefore, if there is an incorrect count, the incorrect record will be the top record, and as such, the incorrect record will be visible.

FIG. 4 shows an illustrative diagram. The illustrative diagram may correspond to a design flow of an append command. In the append command, the data being transmitted from stage table 402 to permanent table 404 may be appended to the data already in permanent table 404. It should be appreciated that this is different from the replace command, where the data in the stage table replaces the contents of the permanent table.

FIG. 5 shows an illustrative diagram. The illustrative diagram shows snapshot load framework 502. Snapshot load framework 502 includes standard view 504. Standard view 504 points to, and joins, permanent table (main table) 606 and permanent table (history table) 510. Standard view 504 may display current data and historical data to an end user.

Monthly view 508 point to permanent table (history table) 510. Monthly view 508 may display historical data based on a parameter received from an end user.

FIG. 6 shows illustrative email diagram 602. Email diagram 602 may demonstrate a successful completion of a view tables process. Email diagram 602 may be transmitted to an end user.

Email diagram 602 may include a date and time, shown at 604. Date and time 604 may be the date and time of the transmission of the email.

Email diagram 602 may also include an email address or email address alias, shown at 606. Email address or email address alias 606 may be the email address or email address alias from which the email was transmitted.

Email diagram 602 may also include a subject line, shown at 608. Subject line 608 may include details relating to the successful view tables process. Subject line 608 demonstrates that folder XX view tables have been created successfully.

Email diagram 602 may also include an email recipient line, shown at 610. Email recipient line 610 may include a recipients or recipient groups to which email 602 was transmitted. The recipients of email 602 include XXX support team and XXX development team.

Email diagram 602 may also include the view tables that have been created, as shown at 612. Email diagram 602 shows that folder XX view tables including tables 1900-1908 have been created.

FIG. 7 shows illustrative email diagram 702. Email diagram 702 may demonstrate a successful completion of a monthly snapshot email transmission. Email diagram 702 may be transmitted to an end user.

Email diagram 702 may include a date and time, shown at 704. Date and time 704 may be the date and time of the transmission of the email.

Email diagram 702 may also include an email address or email address alias, shown at 706. Email address or email address alias 706 may be the email address or email address alias from which the email was transmitted.

Email diagram 702 may also include a subject line, shown at 708. Subject line 708 may include details relating to the monthly snapshot load process. Subject line 708 demonstrates that the historical monthly snapshot for table 1900 has been loaded and/or created successfully.

Email diagram 702 may also include an email recipient line, shown at 710. Email recipient line 710 may include a recipients or recipient groups to which email 702 was transmitted. The recipients of email 702 include XXX support team.

Email diagram 702 may also details relating to the historical snapshot loading, as shown at 712. Email diagram 702 shows that the historical monthly snapshot of table 1900 has been loaded successfully for the month of October 2019.

FIG. 8 shows illustrative email diagram 802. Email diagram 802 may demonstrate a successful completion of a condenser process. Email diagram 802 may be transmitted to an end user.

Email diagram 802 may include a date and time, shown at 804. Date and time 804 may be the date and time of the transmission of the email.

Email diagram 802 may also include an email address or email address alias, shown at 806. Email address or email address alias 806 may be the email address or email address alias from which the email was transmitted.

Email diagram 802 may also include a subject line, shown at 808. Subject line 808 may include details relating to the condenser process. Subject line 808 demonstrates that the condenser process for Historical table 1900 has been completed successfully.

Email diagram 802 may also include an email recipient line, shown at 810. Email recipient line 810 may include a recipients or recipient groups to which email 802 was transmitted. The recipients of email 802 include XXX support team.

Email diagram 802 may also details relating to the condenser process of historical table 1900, as shown at 812. As shown at 812, the condenser process has been successful for historical table 1900. Also, as shown at 812, a record count validation of the standard table, temporary table and the permanent table after condenser count is shown. The record count may show that the count has remained the same within the various table views.

FIG. 9 shows an illustrative query tool 902. Query tool 902 may be used to query tables within the data lake. Query tool 902 may include header 904. Query tool 902 may display a specific folder to query, as shown at 906. Query tool 902 may include a list of tables included in the folder, as shown at 908. Query tool 902 may include a filter box, as shown at 910. Filter box 910 may enable a user to filter the list of tables.

Thus, apparatus and methods for a CONDENSER FRAMEWORK are provided. Persons skilled in the art will appreciate that the present disclosure can be practiced by other than the described embodiments, which are presented for purposes of illustration rather than of limitation. The present disclosure is limited only by the claims that follow. 

What is claimed is:
 1. A method for generating structured views of raw data stored in a data lake, the method comprising: receiving relationally tabulated data at an edge node positioned within the data lake; deconstructing the tabulated data into a main flat table comprising duplicative records; storing the main flat table in the data lake in native format, wherein the native format corresponds to the raw data in its as-generated form; creating a first standard view table consisting of unique records added to the main flat table within a first predetermined time window; condensing the main flat table to improve performance and storage space by: obtaining a unique record count of records in the first standard view table; creating a temporary table based on the record count; inserting a set of overwrite records into the temporary table; and overwriting the main flat table with the temporary table; creating a second standard view table consisting of unique records added to the main flat table within a second predetermined time window; and using a viewing tool running in the data lake, generating tabulated views of: the first standard view table during the first time window; and the second standard view table during the second time window.
 2. The method of claim 1 further comprising: after inserting the set of overwrite records into the temporary table, obtaining a unique record count of records in the temporary table; comparing the unique record count of the temporary table to the unique record count of the first standard view table; and aborting any changes to the main flat table when the unique record count of the temporary table is not equal to the unique record count of the first standard view table.
 3. The method of claim 1 further comprising after overwriting the main flat table: comparing the unique record count of the main flat table to the unique record count of the first standard view table; and recreating the temporary table when the unique record count of the main flat table is not equal to the unique record count of the first standard view table.
 4. The method of claim 1, wherein before the overwriting, the temporary table includes fewer records than the main flat table.
 5. The method of claim 4, wherein the overwriting truncates at least one record in the main flat table.
 6. The method of claim 1, wherein after the overwriting, the temporary table includes the same amount of records as the first standard view table.
 7. The method of claim 1, wherein: the overwrite records correspond to records included in the main flat table and stored within the data lake; and each overwrite record is located within the data lake based on metadata included in the first standard view table.
 8. The method of claim 1, wherein creation of the temporary table is controlled by a configuration file.
 9. The method of claim 8, wherein the overwriting of the main flat table with the temporary table comprises changing a memory address that directs the configuration file to the temporary table instead of the main flat table.
 10. The method of claim 1, wherein, the second time window is after the first time window and the second standard view includes a different number of unique records than the first standard view.
 11. A distributed computing system operating in a data lake and comprising processors linked through a communications network that execute machine executable instructions stored on non-transitory memory within the distributed computer system for generating structured views of data stored within the data lake, the system comprising: an edge-node positioned within the data lake and configured to receive tabulated data from computer systems outside the data lake in native format, wherein the native format corresponds to the tabulated data in its as-generated form; a view framework configured to: eliminate duplicate records included in the tabulated data; store unique records included in the tabulated data in a main flat table within the data lake; generate a first standard view table referencing a first set of unique records added to the main flat table within a first predetermined time window; and create a second standard view table referencing a second set of unique records added to the main flat table within a second predetermined time window; a condenser framework configured to improve performance of the view framework when generating the standard view table by: obtaining a count of the first set of unique records referenced in the first standard view table; creating a temporary table based on the count; inserting a set of overwrite records into the temporary table; and overwriting the main flat table with the temporary table; and a viewing module configured to generate views of: the first set of unique records referenced in the first standard view table by using metadata included in the first standard view table to locate one or more of the unique records included in the main flat table and stored within the data lake; and the second set of unique records referenced in the second standard view table by using metadata included in the second standard view table to locate one or more of the unique records included in the main flat table and stored within the data lake.
 12. The system of claim 11, wherein the temporary table includes fewer records than the main flat table, the condenser framework is further configured to truncate records from the main flat table by overwriting the main flat table with the temporary table.
 13. The system of claim 12, the condenser framework is further configured to generate the temporary table based on records referenced in the first standard view table and physically stored in the data lake.
 14. The system of claim 11, condenser framework is further configured to: compare a number of records included in the temporary table to a number of records referenced in the first standard view table; and abort the overwrite process when the number of records included in the temporary table is not equal to the number of records referenced in the first standard view table.
 15. The system of claim 11, wherein the condenser framework is further configured to: determine that the main flat table has exceeded a threshold amount of storage space within the data lake; and truncate the main flat table based on a metadata stored in the second standard view table; wherein, after truncating the main flat table based on the second standard view table, the main flat table occupies less than the threshold amount of storage space within the data lake.
 16. A distributed computer system comprising processors linked through a communications network that execute software applications stored on non-transitory memory within the distributed computer system and generate structured views of data stored in native format within a data lake, wherein the native format corresponds to the data in its as-generated form, the software applications comprising: a view framework configured to generate a first standard view table by removing duplicate records added to a main flat table stored in the data lake within a first predetermined time window; a condenser framework configured to improve performance of the view framework when generating the first standard view table by: obtaining a unique record count of records in the first standard view table; creating a temporary table based on the record count; inserting a set of overwrite records into the temporary table; overwriting the main flat table with the temporary table; and creating a second standard view table referencing unique records added to the main flat table within a second predetermined time window; and a viewing module configured to generate, based on the data stored in native format within the data and in response to user commands, a display of: the first standard view table during the first time window; and the second standard view table during the second time window.
 17. The system of claim 16, wherein records are added to the main flat table daily, and the condenser framework is configured to truncate records that have been referenced in the first standard view table for more than 30 days.
 18. The system of claim 16 wherein the condenser framework uses object-oriented programming to locate target records stored in the data lake for less than 30 days and load the target records into the temporary table.
 19. The system of claim 18, the condenser framework further configured to use classes and properties to express queries for locating the target records in the data lake.
 20. The system of claim 18, wherein the condenser framework is configured to confirm that the first standard view table and the temporary table reference an identical number of records before overwriting the main flat table. 